# source files.
SRC =  	dlm.cpp DLM_Manager.cpp DLM_Coordinator.cpp

OBJ = $(SRC:.cpp=.o)

OUT = ../libdlm.a

# include directories
INCLUDES = 

# C++ compiler flags (-g -O2 -Wall)
CCFLAGS = -g -pthread

# compiler
CCC = g++

# library paths
LIBS = -lm -pthread -static

# compile flags
LDFLAGS = -g

.SUFFIXES: .cpp

default: dep $(OUT)

.cpp.o:
	$(CCC) $(INCLUDES) $(CCFLAGS) -c $< -o $@

$(OUT): $(OBJ)
	ar rcs $(OUT) $(OBJ)

depend: dep

dep:
	makedepend -- $(CFLAGS) -- $(INCLUDES) $(SRC)

clean:
	rm -f $(OBJ) $(OUT) Makefile.bak 
# DO NOT DELETE

dlm.o: DLM_Manager.h dlm.h /usr/include/unistd.h /usr/include/features.h
dlm.o: /usr/include/bits/predefs.h /usr/include/sys/cdefs.h
dlm.o: /usr/include/bits/wordsize.h /usr/include/gnu/stubs.h
dlm.o: /usr/include/gnu/stubs-32.h /usr/include/bits/posix_opt.h
dlm.o: /usr/include/bits/types.h /usr/include/bits/typesizes.h
dlm.o: /usr/include/stddef.h /usr/include/bits/confname.h
dlm.o: /usr/include/getopt.h /usr/include/cstdlib /usr/include/sys/types.h
dlm.o: /usr/include/time.h /usr/include/endian.h /usr/include/bits/endian.h
dlm.o: /usr/include/bits/byteswap.h /usr/include/sys/select.h
dlm.o: /usr/include/bits/select.h /usr/include/bits/sigset.h
dlm.o: /usr/include/bits/time.h /usr/include/sys/sysmacros.h
dlm.o: /usr/include/bits/pthreadtypes.h /usr/include/alloca.h
dlm.o: /usr/include/cstdio /usr/include/libio.h /usr/include/_G_config.h
dlm.o: /usr/include/wchar.h /usr/include/bits/stdio_lim.h
dlm.o: /usr/include/bits/sys_errlist.h /usr/include/pthread.h
dlm.o: /usr/include/sched.h /usr/include/bits/sched.h /usr/include/signal.h
dlm.o: /usr/include/bits/setjmp.h
DLM_Manager.o: DLM_Manager.h dlm.h /usr/include/unistd.h
DLM_Manager.o: /usr/include/features.h /usr/include/bits/predefs.h
DLM_Manager.o: /usr/include/sys/cdefs.h /usr/include/bits/wordsize.h
DLM_Manager.o: /usr/include/gnu/stubs.h /usr/include/gnu/stubs-32.h
DLM_Manager.o: /usr/include/bits/posix_opt.h /usr/include/bits/types.h
DLM_Manager.o: /usr/include/bits/typesizes.h /usr/include/stddef.h
DLM_Manager.o: /usr/include/bits/confname.h /usr/include/getopt.h
DLM_Coordinator.o: DLM_Coordinator.h dlm.h /usr/include/unistd.h
DLM_Coordinator.o: /usr/include/features.h /usr/include/bits/predefs.h
DLM_Coordinator.o: /usr/include/sys/cdefs.h /usr/include/bits/wordsize.h
DLM_Coordinator.o: /usr/include/gnu/stubs.h /usr/include/gnu/stubs-32.h
DLM_Coordinator.o: /usr/include/bits/posix_opt.h /usr/include/bits/types.h
DLM_Coordinator.o: /usr/include/bits/typesizes.h /usr/include/stddef.h
DLM_Coordinator.o: /usr/include/bits/confname.h /usr/include/getopt.h
